06. Persistent Storage Options

Question 1

Your friend wants to make an audio recording application for journalists. This app would let journalists easily record interviews on their device - which of the following persistence options is easiest option to store the recordings?

SOLUTION: Internal/External Storage

Questions 2

You have a bug in your note-taking app. Sometimes when you are in the middle of typing a note and navigate away, then come back to the app, the message is lost. Which of the following data persistence methods would you use to solve this bug. You ask your users if they want a half written note to be saved if the user turns off the phone or closes the app and they say no.

SOLUTION: onSavedInstanceState

Question 3

Larry asks you what data persistence option you’re considering for the settings of the Visualizer app. What is the best choice in this case?

SOLUTION: SharedPreferences